<?php
    header("content-type:text/html;charset=utf8");
    $conn=new Mysqli("localhost","root","root","db_bailian");
    Mysqli_set_charset($conn,'utf8');
    $type_id=$_GET["type_id"];
    if($conn->connect_errno){
        die("数据库连接失败！");
    }
    $sql="delete from  t_addcart where type_id={$type_id}";
    $res=$conn->query($sql);
    if($res){
        echo "数据删除成功！";
    }else{
        echo "数据删除失败！";
    }
?>
